import BookList.Booklist;
import User.*;
import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-25
 * Time:12:00
 */
public class Main {
    public static void game()
    {
        Booklist book=new Booklist();
        System.out.println("输入你的姓名");
        Scanner sc=new Scanner(System.in);
        String name=sc.nextLine();
        User man;
        if(name.equals("汤琦"))
        {
            man=new Administrators();
        }
        else   man=new Normaluser();
    while(true)
    {
       int choice= man.menu();
       man.Operation(choice,book);
    }
    }
    public static void main(String[] args) {
        game();
    }
}
